import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-03-28
 * Time: 13:50
 */
public class Main {
    public static void main(String[] args) {
        boolean[] judge = new boolean[300];
        Arrays.fill(judge, true);
        judge[0] = false;
        judge[1] = false;
        for (int i = 2; i < 300; i++) {
            if (judge[i]) {
                for (int j = i + i; j < 300; j += i) {
                    judge[j] = false;
                }
            }
        }
        int count = 0;
        for (int i = 100; i <= 200; i++) {
            if (judge[i]) {
                count++;
                System.out.print(i + " ");
            }
        }
        System.out.println();
        System.out.println("总数：" + count);
    }
}
